import request from '@/utils/request'

export function getNewBook() {
  return request({
    url: '/NewBook',
    method: 'get'
  })
}
export function getHotBook() {
  return request({
    url: '/HotBook',
    method: 'get'
  })
}
export function getBookByName(data) {
  return request({
    url: '/ByBookName',
    method: 'post',
    data
  })
}
export function getBookByAuthor(data) {
  return request({
    url: '/ByBookAuthor',
    method: 'post',
    data
  })
}
export function getBookByNumber(data) {
  return request({
    url: '/ByBookNumber',
    method: 'post',
    data
  })
}

export function onBook(data) {
  return request({
    url: '/onBook',
    method: 'post',
    data
  })
}

